From 66c5fba15a07669dc6858f9aba4a7a1946f4516d Mon Sep 17 00:00:00 2001 From: parkrrrr Date: Sat, 15 Oct 2005 21:25:03 +0000 Subject: [PATCH] Added 'symbol' option to an1 format --- gpsbabel/README | 6 ++++++ gpsbabel/an1.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gpsbabel/README b/gpsbabel/README index 2c6552e99..33da38c85 100644 --- a/gpsbabel/README +++ b/gpsbabel/README @@ -949,6 +949,12 @@ THE FORMATS gpsbabel -i gpx -f 12345.gpx -o an1,nogc -F 12345.an1 + The "symbol" option allows you to specify which symbol to use for + points that don't have a symbol already. It defaults to "Red Flag" + but it accepts any symbol name you can put in a DeLorme export file. + To find the name of a specific symbol in Street Atlas, let the mouse + pointer hover over it for a few seconds and the name will be displayed. + GPSBabel has limited experimental support for other types of layers besides the default "drawing" layer with the use of two options: diff --git a/gpsbabel/an1.c b/gpsbabel/an1.c index 2de011aa0..9139ebf14 100644 --- a/gpsbabel/an1.c +++ b/gpsbabel/an1.c @@ -32,6 +32,7 @@ static FILE *outfile; static char *output_type = NULL; static char *road_changes = NULL; static char *nogc = NULL; +static char *opt_symbol = NULL; static short output_type_num = 0; static short last_read_type = 0; @@ -54,6 +55,8 @@ arglist_t an1_args[] = { "", ARGTYPE_HIDDEN | ARGTYPE_STRING }, {"nogc", &nogc, "Do not add geocache data to description", NULL, ARGTYPE_BOOL }, + {"symbol", &opt_symbol, "Symbol to use for point data", + "Red Flag", ARGTYPE_STRING }, {0, 0, 0, 0 } }; @@ -621,7 +624,7 @@ Write_One_AN1_Waypoint( const waypoint *wpt ) rec->unk2 = 3; rec->unk3 = 18561; rec->fontname = xstrdup( "Arial" ); - FindIconByName( "Red Flag", &rec->guid ); + FindIconByName( opt_symbol, &rec->guid ); rec->fontsize = 10; } rec->name = xstrdup( wpt->description ); -- 2.30.2